﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Chatbar.aspx.cs" Inherits="Main_AjaUtils_Chatbar" %>

<form id="frmChatbar" runat="server">
<%--<table>
<tr>
<asp:Repeater ID="catlist2" runat="server">
    <ItemTemplate>
        <td>
        <div align=center style="border:solid 2px;cursor:pointer;display:block">
            <table>
                <tr style="background-color:Navy;color:White">
                    <td>
                        <%#DataBinder.Eval(Container.DataItem, "roomName")%>
                        <asp:HiddenField ID="roomID" text="<%#DataBinder.Eval(Container.DataItem, "roomID")%>" 
                    </td>
                </tr>
                <tr>
                    <td>
                        <textarea id="chatarea"></textarea>
                    </td>                    
                </tr>
            </table>            
        </div>
        </td>                                          
    </ItemTemplate> 
</asp:Repeater>    
</tr>
</table>--%>
<table border="0" cellpadding="0" cellspacing="0" id="Table1" style="width:100%">
                <tr>
                    <td align="left" style="width:140px">
                        <h1>Office Online Chat</h1>
                    </td>
                    <td>
                        <form="chatrooms_form">
                         <table>
                            <tr id="chatrooms_tr">
                                <asp:Repeater ID="chatroomList" runat="server" onItemDataBound="itemBound">
                                    <ItemTemplate> 
                                        <td style="width:155px">  
                                        <div align=center style="border:solid 2px;cursor:pointer;">
                                            <div style="color:Black" id="divWindow" runat="server">
                                               <asp:HiddenField ID="roomID" text='<%#DataBinder.Eval(Container.DataItem, "roomID")%>' />
                                               <asp:Label ID="lbl" runat="server" text='<%#DataBinder.Eval(Container.DataItem, "roomName")%>'/>
                                                
                                            </div>
                                        </div> 
                                        </td>                         
                                    </ItemTemplate> 
                                </asp:Repeater>                                                                     
                            </tr>
                         </table>
                        </form>
                    </td>
                    <td  style="width:120px">
                        <input type="button" runat="server" id="chatbutton" style="width:120px" value="Show Online Users" onclick="showOnlineUsers()"/>
                    </td>
                  <%--  <td>
                        <asp:DataGrid ID="dg1" 
                             Width="100%" Height="50px"
                             runat="server" 
                             BorderColor="Silver"
                             GridLines="Vertical"
                             AutoGenerateColumns="false"
                             HeaderStyle-BackColor="Silver"
                             HeaderStyle-Font-Bold="True"
                             Visible="false">                                    
                                <Columns>
                                    <asp:BoundColumn DataField="roomID" HeaderText="ID" Visible="true"/>                    
                                </Columns>        
                        </asp:DataGrid> 
                    </td>--%>
                    
                </tr>
            </table>   
</form>                  